package com.example.demo.controller.common;

/**
 * @author baisongyuan
 * @className StatusCodeEnum
 * @description
 * @date 2022/9/20 21:28
 */
public enum StatusCodeEnum {
    SUCCESS(200, "成功,操作完成"),
    FAIL(500,"Server Internal Error");

    private Integer code;
    private String msg;

    StatusCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
